package com.versita.domain;

import java.io.Serializable;

import javax.persistence.Embeddable;

@Embeddable
public class GPS implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 2408465360908550180L;

    private double x;
    private double y;
    private double h;

    public GPS() {}

    public GPS(GPS gps) {
        this.x = (gps == null ? 0 : gps.getX());
        this.y = (gps == null ? 0 : gps.getY());
        this.h = (gps == null ? 0 : gps.getH());
    }
    public GPS(double x, double y, double h) {
        this.x = x;
        this.y = y;
        this.h = h;
    }

    public double getX() {
        return this.x;
    }
    public void setX(double x) {
        this.x = x;
    }
    public double getY() {
        return this.y;
    }
    public void setY(double y) {
        this.y = y;
    }
    public double getH() {
        return this.h;
    }
    public void setH(double h) {
        this.h = h;
    }

}
